home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
DEMOCIAL
/
DEMOSIDK.LZH
/
INSTALL.BAT
next >
Wrap
DOS Batch File
|
1991-01-24
|
3KB
|
107 lines
echo off
cls
if not exist sk2demo.zip goto error
if !==%1! goto auto
goto manual
:ERROR
cls
echo ----------------------------------------------------------------
echo - ERROR
echo -
echo - You must run INSTALL from the DOS prompt of the drive
echo - that contains the Sidekick 2.0 Demo disk, (e.g. A: or B:)
echo -
echo - Please correct and try again.
echo ----------------------------------------------------------------
goto exit
:AUTO
echo .........................................................................
echo : :
echo : SIDEKICK 2.0 Demo Installation :
echo : :
echo : This demo requires 581K of free space on your hard disk. :
echo : :
echo : To install the Sidekick 2.0 Demo on C:\SK2DEMO, press any key now. :
echo : :
echo : To install on a drive other than C: :
echo : 1. Press [CTRL] [C] and answer Y to "Terminate batch file?" :
echo : 2. Type INSTALL X then press [ENTER] :
echo : where: X is the letter of the desired drive :
echo : DO NOT add a colon (:) to the drive letter. :
echo : An \SK2DEMO directory is created automatically. :
echo : :
echo : example: INSTALL E - installs onto E:\SK2DEMO :
echo : :
echo :.......................................................................:
echo To install on C:\SK2DEMO,
pause
cls
echo Now installing the Sidekick 2.0 Demo on C:\SK2DEMO
md c:\SK2DEMO
echo on
unzip sk2demo.zip C:\SK2DEMO
echo off
if errorlevel 1 goto space
cls
c:
cd\sk2demo
goto end
:MANUAL
chkdsk %1:
if errorlevel 1 goto drive
goto ok
:DRIVE
cls
echo ------------------------------------------------------------
echo - ERROR
echo -
echo - You have specified an invalid drive parameter (%1:).
echo -
echo - If you see two colons here (%1:), please
echo - type INSTALL X without adding a colon.
echo -
echo - X is the letter of the desired drive
echo -
echo - Please correct and try again.
echo ------------------------------------------------------------
goto exit
:SPACE
cls
echo --------------------------------------------------------------
echo - ERROR
echo -
echo - There is insufficient space on the specified drive (%1:)
echo -
echo - -or- You have specified an invalid drive parameter.
echo -
echo - If you see two colons here (%1:), please
echo - type INSTALL X without adding a colon.
echo -
echo - X is the letter of the desired drive
echo -
echo - Please correct and try again.
echo --------------------------------------------------------------
goto exit
:OK
echo Now installing the Sidekick 2.0 Demo on %1:\SK2DEMO
md %1:\SK2DEMO
echo on
unzip sk2demo.zip %1:\SK2DEMO
echo off
if errorlevel 1 goto space
cls
%1:
cd\SK2DEMO
:END
echo Type DEMO and press [ENTER] to view the Sidekick 2.0 Demo
:EXIT